package com.anXin.user.service;

import com.anXin.model.common.dtos.ResponseResult;
import com.anXin.model.user.dtos.*;
import com.anXin.model.user.pojos.User;
import com.baomidou.mybatisplus.extension.service.IService;


public interface UserService extends IService<User>{

    /**
     * app端登录
     * @param dto
     * @return
     */
    public ResponseResult login(LoginDto dto);

    public ResponseResult reg(RegDto dto);

    public ResponseResult phoneCode(PhoneCodeDto dto);

    public ResponseResult loginByPhone(LoginByPhoneDto dto);

    public ResponseResult queryByKey();

    public ResponseResult queryByKey(String key);

    public ResponseResult batchDelete(Long[] ids);

    public ResponseResult setStatus(Long id);

    public ResponseResult userInfo(Long id);

    public ResponseResult checkPhoneCode(LoginByPhoneDto dto);

    public ResponseResult updatePassword(UpdateDto dto);
}